SharedCmpFeatureConventionPlugin

class SharedCmpFeatureConventionPlugin : Plugin<Project>

Convention plugin for a feature module in a Compose Multiplatform fleet.

Builds on SharedKmpComposeConventionPlugin and pre-wires the standard dep set shared by every feature: Compose runtime/UI/Material3/icons, Koin (core/compose/viewmodel), JetBrains navigation-compose, lifecycle-viewmodel and kotlinx-datetime in commonMain; plus the androidMain complements (activity-compose, lifecycle-*-compose, koin-android, coroutines-android).

Each feature build.gradle.kts only declares its android { namespace/... } block and its module-specific project(...) dependencies. The consumer's own version catalog must expose every library alias referenced below (runtime, ui, material3, foundation, material.icons.extended, ui.tooling.preview.mp, koin.core, koin.compose, koin.compose.viewmodel, lifecycle.viewmodel, jb.navigation.compose, kotlinx.datetime, core.ktx, activity.compose, lifecycle.viewmodel.compose, lifecycle.runtime.compose, koin.android, kotlinx.coroutines.android).

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun apply(target: Project)